@primary-color: #1890ff;

.memo-container {
    display: flex;
    max-height: 800px;

    .calendar-wrapper {
        flex: 1;
    }

    .memo-wrapper {
        display: flex;
        flex-direction: column;
        width: 400px;
        flex-shrink: 0;
        overflow: hidden;

        .memo-header {
            display: flex;
            align-items: flex-end;

            .current-date {
                font-size: 20px;
                color: @primary-color;
                flex: 1;
            }

            .tabs {
                display: flex;
                align-items: center;
            }

            .tab-item {
                color: #ccc;
                padding: 5px 0;
                font-size: 16px;
                margin-right: 16px;
                cursor: pointer;

                &:last-child {
                    margin-right: 0;
                }

                &.active {
                    color: @primary-color;
                    border-bottom: 1px solid @primary-color;
                }
            }
        }

        .memo-list {
            flex: 1;
            overflow: auto;
            margin: 16px 0;

            .memo-item {
                margin-bottom: 24px;

                &:last-child {
                    margin-bottom: 0;
                }
            }
        }

        .add-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 60px;
            border: 1px solid #ccc;
            border-radius: 2px;
            cursor: pointer;
            transition-duration: 0.2s;

            &:hover {
                background-color: @primary-color;
                color: #fff;
                border-color: @primary-color;
            }

            .plus-icon {
                margin-right: 5px;
            }
        }
    }

    .divider {
        height: auto;
        margin: 0 24px;
    }
}

ul.calendar-memo-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.holiday-sign {
    position: absolute;
    top: 4px;
    right: 30px;
    padding: 1px 3px;
    background: #f00;
    color: #fff;
    font-size: 12px;
}

.memo-item-badge {
    display: flex;
    align-items: center;

    .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #52c41a;
    }

    .content {
        margin-left: 5px;
        width: 100%;
        overflow: hidden;

        ::ng-deep p {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin: 0;
        }
    }
}

:host ::ng-deep .ant-picker-calendar-mode-switch {
    display: none;
}